package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.front.pojo.TbAreas;
import com.dongdongshop.front.service.AreasService;
import com.dongdongshop.mapper.TbAreasMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Service
public class AreasServiceImpl implements AreasService {

    @Autowired
    private TbAreasMapper areasMapper;

    @Override
    public List<TbAreas> getAreasByCityid(String cityid) {
        List<TbAreas> areasList = areasMapper.getAreasByCityid(cityid);
        return areasList;
    }
}
